package org.example.controller.authorization.role;

import com.bianmaba.spring.web.controller.CrudController;
import org.example.bean.entity.authorization.Role;
import org.example.service.authorization.role.IRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = {"authorization/role"})
public class RoleController extends CrudController<Role, String> {
    @Autowired
    private IRoleService service;

    @Override
    protected IRoleService getService() {
        return service;
    }
}
